<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>War</title>
  <link href="static/css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="static/js/jquery.js"></script>

<script type="text/javascript">
$(function(){	
	//导航切换
	$(".menuson li").click(function(){
		$(".menuson li.active").removeClass("active")
		$(this).addClass("active");
	});
	
	$('.title').click(function(){
		var $ul = $(this).next('ul');
		$('dd').find('ul').slideUp();
		if($ul.is(':visible')){
			$(this).next('ul').slideUp();
		}else{
			$(this).next('ul').slideDown();
		}
	});
})	
</script>


</head>

<body style="background:#f0f9fd;">
	<div class="lefttop">
		<span></span>通讯录
	</div>
    <dl class="leftmenu">
	    <c:forEach items="${menu }" var="m">
			<dd>
			    <div class="title">
			    	<span><img src="static/images/leftico02.png" /></span>${m.key.hMname }
			    </div>
			    <ul class="menuson">
			    	<c:forEach items="${m.value }" var="m1">
			    		<li><cite></cite><a href="${m1.hMurl }"  target="rightFrame">${m1.hMname }</a><i></i></li>
			    	</c:forEach>
			    </ul>
		    </dd>
		</c:forEach>
    </dl>
</body>
</html>
